<?php
/**
 * 农行返回地址
 */
error_reporting(7);

if($_POST['pay_sn']&&$_POST['order_type']){
    $_GET['act']	      = 'payment';
    $_GET['op']		      = 'return';
    $_GET['payment_code'] = 'abcpay2';

//赋值，方便后面合并使用支付宝验证方法
    $_GET['out_trade_no'] = $_POST['pay_sn'];
    $_GET['extra_common_param'] = $_POST['order_type'];
    $_GET['trade_no'] = '';
    require_once(dirname(__FILE__).'/../../../index.php');
    exit;
}

$_GET['act']	= 'payment';
$_GET['op']		= 'notify';
$_GET['payment_code'] = 'abcpay2';

//赋值，方便后面合并使用支付宝验证方法
$_POST['out_trade_no'] = $_GET['pay_sn'];
$_POST['extra_common_param'] = $_GET['order_type'];
$_POST['trade_no'] = '';
require_once(dirname(__FILE__).'/../../../index.php');
?>